package com.njtoyo.taxi.admin.rest.wrapper.business.company;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("修改公司基本信息模型")
@Data
public class CompanyUpdateProportionWrapper {

    @Digits(integer = 3, fraction = 2, message = "amount格式不正确")
    @NotNull(message = "司机分成比例为空")
    @ApiModelProperty(value = "司机分成比例")
    private BigDecimal driverEarningRatio;

    @NotNull(message = "出租车公司分成比例为空")
    @Digits(integer = 2, fraction = 2, message = "amount格式不正确")
    @ApiModelProperty(value = "出租车公司分成比例")
    private BigDecimal companyEarningRatio;

}
